/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package run;

import util.common.ConfigFileConstants;

/**
 *
 * @author rm61844
 */
public class RunServerTCP {

    public static void main(String[] args) throws Exception {
        //int port = Integer.parseInt(args[0]);
        String host = ConfigFileConstants.getFileConfig("network.properties", "SERVER_HOST");
        int port = Integer.parseInt(ConfigFileConstants.getFileConfig("network.properties", "SERVER_PORT"));
        if (port < 1023 && port > 49151) {
            System.out.print("Please, check your port: The range is 1024 -> 49151");
            //Fazer ele redigitar a porta
        } else {
            server.ServerTCP srv = new server.ServerTCP(port, host);
        }

    }
}
